require "rubygame"
include Rubygame

###
#
# A Program object is a sprite that acts according to its code spreadsheet
#
###

class Program
	include Sprites::Sprite

	def initialize
		super
		@original = Surface['chimp.bmp']
		@original.set_colorkey( @original.get_at([0,0]) )
		@image = @original 		# store original image during rotation
		@rect = @image.make_rect()
		@rect.topleft = 10,10
	end

	def update
		@rect.move(1,1)
	end
end
